/*
 * LandmarkBoxSelector.h
 *
 *  Created on: Oct 14, 2013
 *      Author: filipe
 */

#ifndef LANDMARKBOXSELECTOR_H_
#define LANDMARKBOXSELECTOR_H_

	#include<opencv/cv.h>
	#include<opencv/highgui.h>
	#include "BoxSelector.h"

	class LandmarkBoxSelector: public BoxSelector
	{
		protected:
			cv::Mat _disparity_image;
			double _disparity;

			virtual void _DefaultConstructor();
			void _GetMeanDisparityOfTheBox();

		public:
			LandmarkBoxSelector();
			LandmarkBoxSelector(cv::Mat &reference, cv::Mat &disparity);
			LandmarkBoxSelector(std::string &reference_filename, std::string &disparity_filename);
			virtual ~LandmarkBoxSelector();

			virtual void Loop(void); // loop until user press 'q'
			virtual double GetDisparity(void) const;
	};

#endif
